package com.nowar.data.strategy.service;

import com.nowar.data.strategy.StrategyBaseRequest;
import com.nowar.data.strategy.StrategyBaseResponse;

/**
 * @Author: 谢无殇。
 * @Date : 2023-03-07 23:33
 */
public interface StrategyService {
    /**
     * 匹配策略
     *
     * @param strategy
     * @return
     */
    boolean isMatch(String strategy);

    /**
     * 处理器
     *
     * @param request
     * @return
     */
    StrategyBaseResponse handler(StrategyBaseRequest request);
}
